package cn.kgc.fxy.smbms.service;

import cn.kgc.fxy.smbms.entity.User;
import com.github.pagehelper.PageInfo;

public interface UserService {

    User findLogin(String userCode, String userPassword);

    PageInfo<User> findAllUser(User condition,Integer pageNum,Integer pageSize);



    User findByUserPassword(Long userId);


    void modifyPwd(String userPassword,Long userId);

    User findView(Long userId);
    void addUser(User user);

    Integer findUserCount(String userCode);

    void modifyUser(User user);

    void removeUser(Long userId);

    User findById(Long userId);
}
